<!DOCTYPE html>
<html>

<head>
    <title>登录 - ZJBuss</title>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${ctxPath}/assets/common/layui/css/layui.css"/>
    <link rel="stylesheet" href="${ctxPath}/assets/common/css/login.css" media="all">
    <style>
        body {
            background:linear-gradient(221deg,rgba(21,212,255,1) 0%,rgba(29,29,173,1) 100%);
        }
        .login-body{
            position: relative;
            height: 100%;
            box-sizing: border-box;
        }

        .login-header {
            color: rgba(0, 0, 0, .85) !important;
        }

        .login-footer {
            color: rgba(255, 255, 255, 0.7) !important;
        }

        .login-footer a {
            color: rgba(255, 255, 255, 0.7) !important;
        }

        .login-footer a:hover {
            color: rgba(255, 255, 255, 0.4) !important;
        }
        .layui-input{
            height: 38px;
        }
        .layui-btn{
            height: 38px;
            line-height: 38px;
        }
        .login-body-left,.login-body-right{

            flex: 1;
            height: 100%;
            position: relative;
        }
        .login-body-left>img,.login-body-right .login-form{
            width: 90%;
            height: auto;
            position: absolute;
            top:50%;
            left:50%;
            transform: translate(-50%,-50%);
        }
        .login-body-left>img{

        }
        .company-name{
            color: #fff;
            font-size:28px;
            margin-bottom: 16px;
        }
        .login-form>.layui-card-body{
            background: #fff;
            border-radius: 3px;
            padding: 20px 60px;
            box-sizing: border-box;
        }
        .system-title{
            font-size:24px;
            text-align: center;

        }
        .system-subtitle{
            font-weight: normal;
            text-align: center;
            margin-top: 3px;
            margin-bottom: 10px;

        }
        .login-body-right .login-form .layui-form-item{
            border:1px solid rgba(221,221,221,1);
            border-radius: 3px;
        }
        .login-form .layui-form-item .layui-form-label,.login-form .layui-form-item .layui-input{
            border: none;
        }
        .check-box{
            margin-bottom: 20px;
        }
        .layui-form-checkbox[lay-skin=primary] i{
            width: 12px;
            height: 12px;
            line-height: 12px;
            top:2px
        }
        .layui-form-checkbox[lay-skin=primary]{
            padding-left: 22px;
        }
        .layui-form-pane .layui-input-block{
            left: 0;
        }

    </style>
    <script>
        if (window != top)
            top.location.replace(location.href);
    </script>
</head>

<body>
<div class="login-wrapper">

    <!--<div class="login-header">
        <img src="${ctxPath}/assets/expand/images/logo.png"> ${systemName}
    </div>-->

    <div class=" login-body">
        <div class="layui-card clearfix">
            <div class="login-body-left ">
                <img src="${ctxPath}/assets/common/images/login.png">

            </div>
            <div class="login-body-right ">
                <div class="login-form">
                    <h2 class="company-name">中杰科技</h2>
                    <form class="layui-card-body layui-form layui-form-pane" action="${ctxPath}/login" method="post">
                        <h3 class="system-title"> ${systemName}</h3>
                        <h5 class="system-subtitle">welcome！</h5>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                <img src="${ctxPath}/assets/common/images/username.png">
                            </label>
                            <div class="layui-input-block">
                                <input name="username" type="text" lay-verify="required" class="layui-input" placeholder="请输入用户名">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                <img src="${ctxPath}/assets/common/images/password.png">
                            </label>
                            <div class="layui-input-block">
                                <input name="password" type="password" lay-verify="required" class="layui-input"placeholder="请输入密码">
                            </div>
                        </div>
                        <div class="check-box">
                            <input type="checkbox" name="remember" title="记住密码" lay-skin="primary" checked>
                        </div>
                        <!--                        <div class="layui-form-item" pane="">-->
                        <!--                            <label class="layui-form-label" lay-tips="7天内免登陆">记住我</label>-->
                        <!--                            <div class="layui-input-block">-->
                        <!--                                <input type="radio" name="remember" value="on" title="是">-->
                        <!--                                <input type="radio" name="remember" value="off" title="否" checked="">-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <!--<div class="layui-form-item">-->
                        <!--<label class="layui-form-label"><i class="layui-icon layui-icon-vercode"></i></label>-->
                        <!--<div class="layui-input-block">-->
                        <!--<div class="layui-row inline-block">-->
                        <!--<div class="layui-col-xs7">-->
                        <!--<input name="code" type="text" lay-verify="required" placeholder="验证码"-->
                        <!--class="layui-input">-->
                        <!--</div>-->
                        <!--<div class="layui-col-xs5" style="padding-left: 10px;">-->
                        <!--<img class="login-captcha" src="https://www.oschina.net/action/user/captcha">-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--</div>-->
                        <!--   <div class="layui-form-item">
                               <a href="javascript:;" class="layui-link pull-right">忘记密码？</a>
                           </div>-->
                        <div class="layui-form-item">
                            <button lay-filter="login-submit" class="layui-btn layui-btn-fluid" lay-submit>登 录</button>
                        </div>
                    </form>

                </div>


            </div>

        </div>
    </div>

    <div class="login-footer">
        <p>Copyright © 2020 <a href="http://www.zjiecn.com" target="_blank">中杰科技</a> All rights reserved.</p>
    </div>
</div>

@/* 加入contextPath属性和session超时的配置 */
<script type="text/javascript">
    var Feng = {
        ctxPath: "",
        addCtx: function (ctx) {
            if (this.ctxPath === "") {
                this.ctxPath = ctx;
            }
        }
    };
    Feng.addCtx("${ctxPath}");
</script>
<script type="text/javascript" src="${ctxPath}/assets/common/layui/layui.js"></script>
<script type="text/javascript" src="${ctxPath}/assets/common/js/common.js"></script>

<script>
    layui.use(['layer', 'form'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;

        // 表单提交
        form.on('submit(login-submit)', function (obj) {
            return true;
        });

        // 图形验证码
        // $('.login-captcha').click(function () {
        //     this.src = this.src + '?t=' + (new Date).getTime();
        // });

        var errorMsg = "${tips!}";
        if (errorMsg) {
            layer.msg(errorMsg, {icon: 5, anim: 6});
        }

    });
</script>


</body>
</html>